﻿using System;
using System.Collections.Generic;
using System.Text;

namespace MQ.Core.Cache.Redis
{
    public class CacheByRedis : ICache
    {
        public void Clear(int dbId)
        {
            throw new NotImplementedException();
        }

        public void Clear()
        {
            throw new NotImplementedException();
        }

        public T Get<T>(string key)
        {
            return RedisCache.Get<T>(key);
        }

        public void Remove(string key)
        {
            RedisCache.Remove(key);
        }

        public void Remove(string[] keys)
        {
            
        }

        public void Set<T>(string key, T value)
        {
            RedisCache.Set(key, value);
        }

        public void Set<T>(string key, T value, int expire)
        {
            RedisCache.Set(key, value);
        }
    }
}
